package com.sso.auth;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;

/**
 * OAuth2 授权服务器启动类
 * 
 * @author SSO System
 * @since 2024-01-01
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.sso.auth", "com.sso.common"})
@EntityScan(basePackages = {"com.sso.common.entity", "com.sso.auth.entity"})
public class AuthorizationServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthorizationServerApplication.class, args);
        System.out.println("\n" +
                "=======================================================\n" +
                "    OAuth2 授权服务器启动成功！\n" +
                "    访问地址: http://www.oauth2server.com:9000\n" +
                "    授权端点: http://www.oauth2server.com:9000/oauth2/authorize\n" +
                "    令牌端点: http://www.oauth2server.com:9000/oauth2/token\n" +
                "    JWK 端点: http://www.oauth2server.com:9000/.well-known/jwks.json\n" +
                "=======================================================\n");
    }
} 